home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / star_catcher.swf / scripts / DefineSprite_57 / frame_1 / DoAction.as
Encoding:
Text File  |  2012-01-07  |  489 b   |  18 lines

  1. function fnRemoveMe()
  2. {
  3.    myColorObject = new Color("_root.interface.burst" + _root.gCurrentChannel);
  4.    myColorObject.setTransform(_root.white);
  5.    eval("_root.interface.burst" + _root.gCurrentChannel).gotoAndPlay("go");
  6.    i = 0;
  7.    if(i < _root.activeComets_arr.length)
  8.    {
  9.       _root.activeComets_arr.splice(i,1);
  10.    }
  11.    s = new Sound(CatchSounds);
  12.    s.attachSound("CometCatch");
  13.    s.start();
  14.    _root.fnUpdateScore("COMET");
  15.    removeMovieClip(this);
  16. }
  17. stop();
  18.